package com.offcn.entity;

public class Order {
    private String orderNo; // 订单编号
    private String orderName; // 订单名称
    private double price; // 订单金额

    // 用户购买课程成功之后, 记录表: course_user, cid  uid
    // 订单信息中应该有用户id, 未来可以多表关联查询用户信息
    private int uid;
    // 课程编号, 未来可以多表关联查询到课程相关信息
    private int cid;

    public Order() {
    }

    public Order(String orderNo, String orderName, double price, int uid, int cid) {
        this.orderNo = orderNo;
        this.orderName = orderName;
        this.price = price;
        this.uid = uid;
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderNo='" + orderNo + '\'' +
                ", orderName='" + orderName + '\'' +
                ", price=" + price +
                ", uid=" + uid +
                ", cid=" + cid +
                '}';
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }
}
